<!DOCTYPE html>
<html  lang="en" xmlns:th="http://www.thymeleaf.org">
	<head>
		<meta charset="utf-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="/css/bootstrap.css"/>
		<script src="/js/jquery-3.3.1.js" type="text/javascript" charset="UTF-8"></script>
		<script src="/js/bootstrap.js" type="text/javascript" charset="UTF-8"></script>
	</head>
	<body>
		<h1 class="text-center">个人中心</h1>
		<div class="container" >
			<form class="form-horizontal" th:action="@{/updateUser}" method="post" target="_parent">>
				<input type="text" hidden="hidden" th:value="${session.user.userId}" name="userId">
				<div class="form-group">
			    <label for="input-username" class="col-sm-2 control-label">姓名</label>
			    <div class="col-sm-10">
			      <input type="text" class="form-control" id="input-username" name="username" th:value="${session.user.username}">
			    </div>
			  </div>
			  <div class="form-group">
			    <label for="input-tel" class="col-sm-2 control-label">手机号</label>
			    <div class="col-sm-10">
			      <input type="text" class="form-control" id="input-tel" name="userTel" th:value="${session.user.userTel}">
			    </div>
			  </div>
			  <div class="form-group">
			    <label for="input-password" class="col-sm-2 control-label" data-toggle="tooltip" data-placement="bottom" title="Tooltip on bottom">密码</label>
			    <div class="col-sm-10">
			      <input type="password" class="form-control" id="input-password" name="userPassword" th:value="${session.user.userPassword}">
			    </div>
			  </div>
			  
			  <div class="form-group">
			    <div class="col-sm-offset-2 col-sm-10">
			      <button type="submit" class="btn btn-primary col-md-6 btn-block" id="sub">提交</button>
			    </div>
			  </div>
			</form>
		</div>
	</body>
</html>
